
<?php
$this->load->library('session');
if($this->session->userdata('validated')){
    $head = '<div id="dl-menu" class="dl-menuwrapper">
				<a href="#" id="person_btn" class="dl-trigger">'.$this->session->userdata('adi').' '.$this->session->userdata("soyadi").'</a>

				
				

				<ul id="person_settings" class="dl-menu">
					<li>'.anchor("index/share/", "Tahmins Yap!").'</li>
					<li class="acik">'.anchor("user/allTahmins/", "Tüm Tahminslerim").'</li>
					<li>'.anchor("user/myFollow/", "Takip Ettiklerim").'</li>
					<li class="acik">'.anchor("user/changePass/", "Şifremi Değiştir").'</li>
					<li>'.anchor("user/logOutTahmins","Çıkış Yap").'</li>
				</ul>
			
                                
                                
                                        
					
                                <div id="followers_count_panel"> 
					<span class="followers_count">'.$this->session->userdata("takipci_say").'</span> &nbsp; takipçiniz var.
				</div>
                                </div>
                               
						

					
                                                                                 
				
                                               
				<div id="support_buttons">
					<a href="#" class="help">Yardım</a>
					<a href="#">İletişim</a>
				</div>';
    $headers['miss'] = $head; 
}else{
  $head= '<a id="modal_trigger" href="#modal" class="login"><img src="'.$base.'assets/image/login_btn.png"></a>
					
                                       

                                        <div id="modal" class="popupContainer" style="display:none;">
                                            <header class="popupHeader">
                                                <span class="header_title">GİRİŞ</span>
                                                <span class="modal_close"><i class="fa fa-times"></i></span>
                                            </header>

                                            <section class="popupBody">
                                                <!-- Social Login -->
                                                <div class="user_login">
                                                    <div class="">
                                                        '.form_open("login/loginn").'
                                                            <label>E-mail / Kullanıcı Adı</label>
                                                            '.form_input("usernames").'
                                                            <br />

                                                            <label>Şifre</label>
                                                            '.form_password("passw").'
                                                            <br />

                                                            

                                                            <div class="action_btns">

                                                               
                                                               <div class="one_half"><input type="submit" name="submit" class="btn btn_red" value="Giriş"/></div>
                                                                <div class="one_half last"><a href="#" id="register_form" class="btn" style="color: #ED6347;">Üye Ol</a></div>

                                                                <a href="#" class="forgot_password">Kullanıcı adı/şifremi unuttum?</a>
                                                            </div>
                                                        '.form_close().'
                                                    </div>




                                                </div>


                                                <!-- Register Form -->
                                                <div class="user_register">
                                                    '.form_open("login/signup").'
                                                    
                                                        <label>Kullanıcı Adınız</label>
                                                        '.form_input("username").'
                                                        <br />
                                                        
                                                        <label>Adınız</label>
                                                        '.form_input("name").'
                                                        <br />
                                                        
                                                        <label>Soyadınız</label>
                                                        '.form_input("lastname").'
                                                        <br />

                                                        <label>E-mail Adresiniz</label>
                                                        '.form_input("email").'
                                                        <br />

                                                        <label>Şifreniz</label>
                                                        '.form_password("pass").'
                                                        <br />

                                                        <label>Şifreniz Tekrar</label>
                                                        '.form_password("repass").'
                                                        <br />

                                                        <div class="checkbox">
                                                            '.form_checkbox("sozlesme", "", "", "id=\'send_updates\'").'
                                                            <label for="send_updates"><a href="#" class="user_protocol">Kullanıcı Sözleşmesini</a> okudum, onaylıyorum</label>
                                                        </div>

                                                        <div class="action_btns">
                                                            <div class="one_half"><a href="#" class="btn back_btn">Geri</a></div>
                                                            <div class="one_half last"><input type="submit" name="submit" class="btn btn_red" value="Onayla!!" style="display: block;"/></div>

                                                        </div>
                                                    '.form_close().'
                                                </div>




                                                
                                                <div class="remember_password">
                                                    '.form_open("login/forgot").'


                                                        <label>E-mail Adres</label>
                                                        '.form_input("email").'
                                                        <br />

                                                        <div class="action_btns">
                                                            <div class="one_half"><a href="#" class="btn back_btn"><i class="fa fa-angle-double-left"></i> Vazgeç</a></div>
                                                            <div class="one_half last"><input type="submit" name="submit" class="btn btn_red" value="Gönder"/></div>
                                                        </div>
                                                    '.form_close().'
                                                </div>
                                            </section>
                                        </div>';
  $headers['miss'] = $head;
}
$this->load->view("template/header",$headers); 
?>
    <?php $this->load->view($page); ?>  
<?php $this->load->view("template/footer"); ?> 
